<cfcomponent displayname="Application" hint="The Application.cfc" output="yes">

	<cfset this.name = "Kalendar-1.0RC5" />
	<cfset this.sessionmanagement = true />
	<cfset this.loginstorage="session">
	<cfset this.sessiontimeout = CreateTimeSpan(0,0,30,0) />
	
	 <cffunction name="onError">
	
		<cfargument
			name="Exception"
			required="true" />
			
		<cfargument
			type="String"
			name="EventName"
			required="true" />
	<!--- uncomment and modify if you want errors not to be displayed and sent to your email --->	
	<!---	
		<!--- Display an error message if there is a page context. --->
		<cfif isDefined("arguments.exception.rootCause")>
		<cfif arguments.exception.rootCause eq "coldfusion.runtime.AbortException">
			<cfreturn/>
		</cfif>
		</cfif>
		<cfif NOT (Arguments.EventName is "onSessionEnd") OR (Arguments.EventName is "onApplicationEnd")>
			Error!
			<cfmail to="xyx@domain" from="kalendar@sanative.net" subject="Kalendar Admin Error" type="html"><cfdump var="#Arguments#" /></cfmail>
			<cfabort />
		</cfif>--->
	</cffunction> 
	
	<cffunction name="onApplicationStart">
		
	</cffunction>

	
	<cffunction name="onRequestStart">
		
	</cffunction>
	
	<cffunction name="onRequestEnd">
		
		<cfif isDefined("returnMessage")>
			<script>alert("<cfoutput>#returnMessage#</cfoutput>")</script>	
		</cfif>
		
	</cffunction>

</cfcomponent>